package site.wtcc.originalfavor.dao.plugin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MyBaseMapper<T> extends BaseMapper<T> {


    /**
     * 如果要自动填充，@{@code Param}(xx) xx参数名必须是 list/collection/array 3个的其中之一
     */
    int insertListSelective(@Param("list") List<T> batchList, @Param("ignore") boolean ignore);

    int insertList(@Param("list") List<T> batchList, @Param("ignore") boolean ignore);

    int insertOrUpdateListSelective(@Param("list") List<T> list);

    int insertOrUpdateSelective(@Param("ent") T ent);
}